package com.weirong.smartvault.backservice.util.table;

import lombok.Getter;
import lombok.Setter;

/**
 * Created with IntelliJ IDEA.
 * User: kfeb4
 * Date: 2017/12/28
 * Time: 12:43
 * 用于表格排版
 */
@Getter
@Setter
public class TableCell<T> {
    String content ;
    Integer height;
    Integer width;
    T obj;
    String additionInf;
    Boolean available; // 实在对象
    Boolean checked ;// 额外算法用参数
    public T getObj(){
        return obj;
    }
    public TableCell(String content,Integer height,Integer width){
       this(content,height,width,null);
    }
    public TableCell(String content,Integer height,Integer width,T obj){
        this.content = content;
        this.height = height;
        this.width = width;
        this.available = false;
        this.checked = false;
        this.obj= obj;
    }
    public TableCell(String content,Integer height){
        this(content,height,1);
    }
    public Boolean getCanSee(){
        return height>0;
    }
}
